/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.infor.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.modules.infor.entity.Goods;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

import java.util.Date;

/**
 * 下游客户物料上调比例表Entity
 * @author 李超辉
 * @version 2018-04-11
 */
public class CustomerGoodsContror extends DataEntity<CustomerGoodsContror> {
	
	private static final long serialVersionUID = 1L;
	private Goods goods;		// 物料
	private Date min;		// 起始时间
	private Date max;		// 截止时间
	private Double sorft;		// 上浮比例
	private Integer num;		// 附加
	private String pro;		// 项目
	private LnCustomers customer;		// 下游客户 父类
	
	public CustomerGoodsContror() {
		super();
	}

	public CustomerGoodsContror(String id){
		super(id);
	}

	public CustomerGoodsContror(LnCustomers customer){
		this.customer = customer;
	}

	@ExcelField(title="物料", align=2, sort=1)
	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="起始时间", align=2, sort=2)
	public Date getMin() {
		return min;
	}

	public void setMin(Date min) {
		this.min = min;
	}
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="截止时间", align=2, sort=3)
	public Date getMax() {
		return max;
	}

	public void setMax(Date max) {
		this.max = max;
	}
	
	@ExcelField(title="上浮比例", align=2, sort=4)
	public Double getSorft() {
		return sorft;
	}

	public void setSorft(Double sorft) {
		this.sorft = sorft;
	}
	
	@ExcelField(title="附加", align=2, sort=5)
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}
	
	@ExcelField(title="项目", align=2, sort=6)
	public String getPro() {
		return pro;
	}

	public void setPro(String pro) {
		this.pro = pro;
	}
	
	public LnCustomers getCustomer() {
		return customer;
	}

	public void setCustomer(LnCustomers customer) {
		this.customer = customer;
	}
	
}